package com.oocl.hw02.sprint;

import com.oocl.hw02.ability.Shootable;

public class PeaShooter extends Plant implements Shootable {

    private final int SHOOT_DAMAGE = 20;

    public PeaShooter() {
        this.setHp(300);
        this.setSunCost(100);
    }

    public void shoot(Zombie zombie) {
        zombie.setHp(zombie.getHp() - SHOOT_DAMAGE);
    }
}
